//
// Forms
// --------------------------------------------------

@form-row-spacing: 12px;

// Override fieldset styles in Normalize
fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.form-row {
    display: block;
    margin-top: @form-row-spacing;
    .clearfix();

    &:first-child {
        margin-top: 0;
    }
}

.form-label {
    float: left;
    height: @input-height-base;
    line-height: @input-height-base;
    padding-right: 12px;
    text-align: right;
    vertical-align: top;

    &.required:before {
        display: inline-block;
        margin-right: 4px;
        content: "*";
        font-family: SimSun;
        line-height: 1;
        color: red;
    }
}

.form-text {
    float: left;
    height: @input-height-base;
    line-height: @input-height-base;
}

.form-control-wrapper {
    position: relative;
    float: left;

    .form-control {
        display: block;
        width: 100%;
    }

    .form-help {
        display: block;
        margin-top: 2px;
        color: #777;
    }

    .error {
        display: block;
        margin: 0;
        color: @color-danger;
    }
}

.form-action {
    margin-top: @form-row-spacing;
    .clearfix();

    .btn,
    .btn-outline,
    .btn-light {
        margin-right: 6px;
        vertical-align: middle;
    }

    .btn-block {
        margin-right: 0;
    }
}